package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName("shop")
public class ShopDO {
    @TableId(type = IdType.AUTO) // 自增
    private Long id;// 小票流水
    private Integer storeId; // 店铺
    private BigDecimal totalPrice; // 总价
    private Date time; // 购买时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "ShopDO{" +
                "id=" + id +
                ", storeId=" + storeId +
                ", totalPrice=" + totalPrice +
                ", time=" + time +
                '}';
    }
}
